package com.sk.cardeal.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by sk on 2018/1/12.
 */

public class PartsListBean {


    /**
     * returnCode : 1
     * returnMsg : 请求成功
     * resultList : [{"id":"297ebd7260a1042c0160a10541390001","code":"33s","companyId":null,"partsName":"xielaobanss","states":1,"note":"xielaobanss33232","isdel":0,"createTime":"2018-01-11 10:33:17"},{"id":"297ebd7260a1042c0160a1050d230000","code":"23323223","companyId":null,"partsName":"xielaoban","states":1,"note":"xielaoban嗯嗯","isdel":0,"createTime":"2018-01-11 10:33:16"},{"id":"297ebd7260a0f4eb0160a0ff4aa20006","code":"2222","companyId":null,"partsName":"分文未二维","states":1,"note":"而我而我","isdel":0,"createTime":"2018-01-11 10:33:14"},{"id":"297ebd7260a0f4eb0160a0fea7880005","code":"ffff","companyId":null,"partsName":"传感器","states":1,"note":"fffff","isdel":0,"createTime":"2018-01-11 10:33:11"},{"id":"297ebd7260a0f4eb0160a0ff7eee0007","code":"nnn","companyId":null,"partsName":"nnn","states":0,"note":"nnn","isdel":0,"createTime":"2017-12-29 14:39:47"},{"id":"402880ec604e811d01604f25f5e60002","code":"2","companyId":null,"partsName":"机油滤清器","states":1,"note":"","isdel":0,"createTime":"2017-12-28 15:23:50"},{"id":"402880ea5e269f89015e26abaaed0005","code":"yy","companyId":"0","partsName":"保养零件分类","states":1,"note":";;;;","isdel":0,"createTime":"2017-08-28 15:59:44"},{"id":"402880eb60e308ab0160e31108290002","code":"323322","companyId":null,"partsName":"我饿问 ","states":1,"note":"问","isdel":0,"createTime":null},{"id":"402880eb60e313850160e31afa950001","code":"33s3","companyId":null,"partsName":"3332","states":1,"note":"232323","isdel":0,"createTime":null},{"id":"402880eb60e313850160e31b23660002","code":"werwe","companyId":null,"partsName":"问问问问","states":0,"note":"而我嗯嗯我喂喂喂 ","isdel":0,"createTime":null},{"id":"402880eb60e313850160e31b432e0003","code":"eewweew","companyId":null,"partsName":"的反而鹅鹅鹅问问","states":1,"note":"问问","isdel":0,"createTime":null}]
     * returnString : null
     */

    private int returnCode;
    private String returnMsg;
    private String returnString;
    private List<ResultListBean> resultList;

    public int getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(int returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public String getReturnString() {
        return returnString;
    }

    public void setReturnString(String returnString) {
        this.returnString = returnString;
    }

    public List<ResultListBean> getResultList() {
        return resultList;
    }

    public void setResultList(List<ResultListBean> resultList) {
        this.resultList = resultList;
    }

    public static class ResultListBean implements Parcelable {
        /**
         * id : 297ebd7260a1042c0160a10541390001
         * code : 33s
         * companyId : null
         * partsName : xielaobanss
         * states : 1
         * note : xielaobanss33232
         * isdel : 0
         * createTime : 2018-01-11 10:33:17
         */

        private String id;
        private String code;
        private String companyId;
        private String partsName;
        private int states;
        private String note;
        private int isdel;
        private String createTime;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getCompanyId() {
            return companyId;
        }

        public void setCompanyId(String companyId) {
            this.companyId = companyId;
        }

        public String getPartsName() {
            return partsName;
        }

        public void setPartsName(String partsName) {
            this.partsName = partsName;
        }

        public int getStates() {
            return states;
        }

        public void setStates(int states) {
            this.states = states;
        }

        public String getNote() {
            return note;
        }

        public void setNote(String note) {
            this.note = note;
        }

        public int getIsdel() {
            return isdel;
        }

        public void setIsdel(int isdel) {
            this.isdel = isdel;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.id);
            dest.writeString(this.code);
            dest.writeString(this.companyId);
            dest.writeString(this.partsName);
            dest.writeInt(this.states);
            dest.writeString(this.note);
            dest.writeInt(this.isdel);
            dest.writeString(this.createTime);
        }

        public ResultListBean() {
        }

        protected ResultListBean(Parcel in) {
            this.id = in.readString();
            this.code = in.readString();
            this.companyId = in.readString();
            this.partsName = in.readString();
            this.states = in.readInt();
            this.note = in.readString();
            this.isdel = in.readInt();
            this.createTime = in.readString();
        }

        public static final Parcelable.Creator<ResultListBean> CREATOR = new Parcelable.Creator<ResultListBean>() {
            @Override
            public ResultListBean createFromParcel(Parcel source) {
                return new ResultListBean(source);
            }

            @Override
            public ResultListBean[] newArray(int size) {
                return new ResultListBean[size];
            }
        };
    }
}
